<?php
App::import('Model','AppModel');

class Karyawan extends AppModel {
    public $name = 'Karyawan';
    public $useTable = 'karyawan';
    public  $displayField = 'nama';
    
    public $hasOne = array(
        'KaryawanJadwalKerja' => array(
            'className' => 'KaryawanJadwalKerja'
        ),
        'Pendapatan' => array(
            'className' => 'Pendapatan'
        ),
        'Potongan' => array(
            'className' => 'Potongan'
        )
    );

}